from rest_framework import serializers
from django.contrib.auth.models import Permission

from apps.UserControl.models import Permissions


class PermissionSerializers(serializers.ModelSerializer):
    create_time = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", required=False, read_only=True)

    class Meta:
        model = Permissions
        fields = "__all__"
